import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    scId: 2,
    orgId: 1,
    org: [],
    orgChildren: [],
    isLogin: false
  },
  mutations: {
    setScId(state, scId) {
      state.scId = scId
    },
    setOrgId(state, orgId) {
      state.org = orgId
    },
    setOrgChildren(state, orgChildren) {
      state.orgChildren = orgChildren
    },
    setIsLogin(state){
      state.isLogin = true
    }
  },
  actions: {},
  modules: {}
})